<?php
namespace app\index\model;

use app\index\controller\Complaint;
use think\Model;

class ComplaintModel extends Model
{
  public $table = 'gjc_feed';

  public function add_centent($uid,$u_nickname,$content){
    // 静态方声明
    $Complaint = ComplaintModel::create([
      'uid' => $uid,
      'user_name' => $u_nickname,
      'feed_content' =>  $content
     ]);
    $result=$Complaint->save();
    return $result;
  }
}